package com.elock.intf.service;

import java.util.Map;

import com.elock.base.core.Page;
import com.elock.base.core.Pageable;
import com.elock.base.core.service.BaseService;
import com.elock.entity.Member;

/**
 * 用户
 * @author 仁德
 */
public interface IntfMemberService extends BaseService<Member> {

	/**
	 * 根据用户名查找用户
	 * @return
	 */
	public Member findByUsername(String username, String companycode);

	/**
	 * 根据手机号查找用户
	 */
	public Member findByMobile(String mobile, String companycode);

	/**
	 * 更新
	 */
	public void updateb(String companyCode, Member member, String saleOrgSn,
			String[] roleName);

	/**
	 * 更新
	 */
	public void updatet(String companyCode, Member member, String saleOrgSn,
			String[] terminalNum);

	public Page<Map<String, Object>> findPage(String username, String mobile, String name,
			String pinCode, Long saleOrgId, String startTime, String endTime,
			Integer memberType, Pageable pageable);

	public void deleteMember(String companycode, String username, String pinCode,
			int memberType);

	public Member findByPinCode(String pinCode);
}
